]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Make notification banners unfocusable
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 10 Apr 2015 15:29:17 +0000 (17:29 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 16 Apr 2015 16:31:18 +0000 (18:31 +0200)
Unlike entries in the calendar's message list, banners are not subject
to the normal keynav chain, and making the banner actor itself unfocusable
allows for the focus to be moved to the action area when expanded.

https://bugzilla.gnome.org/show_bug.cgi?id=747205

js/ui/messageTray.js

index 42c559fbbc12128479e3449df9bf9068e7de7aef..7d2c3c8368b7afe061a450cf62b8d3a8ea902b35 100644 (file)
@@ -508,6 +508,7 @@ const NotificationBanner = new Lang.Class({
     _init: function(notification) {
         this.parent(notification);
 
+        this.actor.can_focus = false;
         this.actor.add_style_class_name('notification-banner');
 
         this._buttonBox = null;